<style>
  .left {
    text-align: left;
  }
  .right {
    text-align: right;
  }
  .center {
    text-align: center;
  }
  h1 {
    border: 1px solid #000;
  }
</style>

<h1>hello world</h1>
<h1 class="left">hello world</h1>
<h1 class="right">hello world</h1>
<h1 class="center">hello world</h1>
